package com.crtf.kotlin.maven.lombok.java.dto;

import com.crtf.kotlin.maven.lombok.java.dto.impl.GoldfishDTO;
import com.crtf.kotlin.maven.lombok.java.dto.impl.TunaDTO;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "name")
@JsonSubTypes(value = {
        @JsonSubTypes.Type(value = GoldfishDTO.class, name = "金枪鱼"),
        @JsonSubTypes.Type(value = TunaDTO.class, name = "金枪鱼"),
})
public interface FishDTO {
}
